import { defHttp, jsonHttp } from '@/utils/http/axios';
import { RolePageListGetResultModel, RoleListGetResultModel } from '../demo/model/systemModel';
import { BasicListResult, BasicDataResult } from '../model/baseModel';

enum Api {
  dknWarehouseList = '/hl/sys/ms/stock/dknWarehouseList',
  stockList = '/hl/sys/ms/stock/stockList',
  stockProductList = '/hl/sys/ms/stock/stockProductList',
  stockProductSave = '/hl/sys/ms/stock/stockProductSave',
  stockProductRemove = '/hl/sys/ms/stock/stockProductRemove',
  importStockProduct = '/hl/sys/ms/stock/importStockProduct',

  outbillList='/hl/sys/ms/stock/outbillList',
  outbillAllList='/hl/sys/ms/stock/outbillAllList',
  outbillTotal='/hl/sys/ms/stock/outbillTotal',
  outbillDeptUser='/hl/sys/ms/stock/outbillDeptUser',
  stockNoRefList='/hl/sys/ms/stock/stockNoRefList',
  stockPcLight='/hl/sys/ms/stock/stockPcLight',
  tieJiaList='/hl/sys/ms/stock/tieJiaList',
  tiejiaStockList='/hl/sys/ms/stock/tiejiaStockList',

  stockCommonList='/hl/sys/ms/stock/stockCommonList',
  kuweiCommonList='/hl/sys/ms/stock/kuweiCommonList',
  pmcOemList='/hl/sys/ms/stock/pmcOemList',
  pmcOemNote='/hl/sys/ms/stock/pmcOemNote',
  pmcOemItems='/hl/sys/ms/stock/pmcOemItems',
  getQueLiaos='/hl/sys/ms/stock/getQueLiaos',
  baogongQueryList='/hl/sys/ms/stock/baogongQueryList',

  orderBomList='/hl/sys/ms/stock/orderBomList',
  oemMaterialRefList='/hl/sys/ms/stock/oemMaterialRefList',
  importOemMaterialRef='/hl/sys/ms/stock/importOemMaterialRef',

  getQiTaoNum='/hl/sys/ms/stock/getQiTaoNum',
  pmcAutoSync='/hl/sys/ms/stock/pmcAutoSync',

  pmcWenjianList='/hl/sys/ms/stock/pmcWenjianList',

}
export const dknWarehouseList = (params?: any) =>
  defHttp.post<RolePageListGetResultModel[]>({ url: Api.dknWarehouseList, params });

export const stockList = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.stockList, params });

export const stockProductList = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.stockProductList, params });

export const stockProductSave = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.stockProductSave, params });

export const stockProductRemove = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.stockProductRemove, params });

export const importStockProduct = (params?: any) =>
  jsonHttp.post<BasicListResult<any>>({ url: Api.importStockProduct, params });

export const outbillList = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.outbillList, params });

export const outbillTotal = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.outbillTotal, params });

export const outbillDeptUser = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.outbillDeptUser, params });

export const outbillAllList = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.outbillAllList, params });

export const stockNoRefList = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.stockNoRefList, params });

export const stockPcLight = (params?: any) =>
  jsonHttp.post<BasicListResult<any>>({ url: Api.stockPcLight, params });


export const tieJiaList=(params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.tieJiaList, params });

export const tiejiaStockList = (params?: any) =>
  defHttp.post<BasicListResult<any>>({url: Api.tiejiaStockList, params})

export const stockCommonList = (params?: any) =>
  jsonHttp.post<BasicListResult<any>>({ url: Api.stockCommonList, params });

export const kuweiCommonList = (params?: any) =>
  jsonHttp.post<BasicListResult<any>>({ url: Api.kuweiCommonList, params });

export const pmcOemList = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.pmcOemList, params });


export const pmcOemNote = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.pmcOemNote, params });


export const pmcOemItems = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.pmcOemItems, params });

export const orderBomList = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.orderBomList, params });


export const importOemMaterialRef = (params?: any) =>
  jsonHttp.post<BasicListResult<any>>({ url: Api.importOemMaterialRef, params });

export const oemMaterialRefList = (params?: any) =>
  defHttp.post<BasicListResult<any>>({ url: Api.oemMaterialRefList, params });


export const getQueLiaos = (params?: any) =>
  jsonHttp.post<BasicListResult<any>>({ url: Api.getQueLiaos, params });

export const baogongQueryList = (params?: any) =>
  jsonHttp.post<BasicListResult<any>>({ url: Api.baogongQueryList, params });

export const pmcAutoSync = (params?: any) =>
  defHttp.get<BasicListResult<any>>({ url: Api.pmcAutoSync, params });


export const getQiTaoNum = (params?: any) =>
  jsonHttp.post<BasicListResult<any>>({ url: Api.getQiTaoNum, params });

export const pmcWenjianList = (params?: any) =>
  jsonHttp.post<BasicListResult<any>>({ url: Api.pmcWenjianList, params });


